"""
11 -dars. print. format, f-strings.
"""

NAME = 'John'

AGE = 30

print('My name is ' + NAME + '. I\'m ' + str(AGE))
print('My name is %(name)s. I\'m %(age)d' %{'name': NAME, 'age': AGE}) #pylint: disable=consider-using-f-string
print('My name is %s. I\'m %d' %(NAME, AGE)) #pylint: disable=consider-using-f-string
print('Title: %s, Price: %.2f' %('Sony', 40)) #pylint: disable=consider-using-f-string

# format
print('My name is {}. I\'m {}'.format(NAME, AGE)) #pylint: disable=consider-using-f-string
print('My name is {0}. I\'m {1}'.format(NAME, AGE)) #pylint: disable=consider-using-f-string
print('My name is {NAME}. I\'m {AGE}'.format(NAME=NAME, AGE=AGE)) #pylint: disable=consider-using-f-string

# f-strings
print(f'My name is {NAME}. I\'m {AGE}')
print(f'My name is {NAME}. I\'m {AGE + 5}')
print('5 + 2 = {}'.format(5 + 2)) #pylint: disable=consider-using-f-string
print(f'5 + 2 = {5 + 2}')
